<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String msg= request.getParameter("msg");
%>

<!DOCTYPE HTML>
<html>
<head>
 		<base href="<%=basePath%>">
 		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 		<script type="text/javascript" src="lib/jquery/1.9.1/jquery.js"></script>
 		<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
 		<style type="text/css">
 			table,tr,td,th {
 				border: solid  1px;
 			}
 		</style>
</head>
<body>
<a href="productType.html?option=load">添加</a>
	<table>
		<thead>
			<tr>
				<th>类型ID</th>
				<th>类型名称</th>
				<th>排序</th>
				<th>创建时间</th>
				<th>更新时间</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${productTypes}" var="productType">
			<tr>
				<td>${productType.productTypeId}</td>
				<td>${productType.procuctTypeName}</td>
				<td>${productType.sort}</td>
				<td>${productType.createdtime}</td>
				<td>${productType.updatetime}</td>
				<td><a href="productType.html?option=load&id=${productType.productTypeId}">修改</a></td>
				<td><a href="productType.html?option=delete&id=${productType.productTypeId}">删除</a></td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
</body>
<script type="text/javascript">
	var msg="<%=msg%>";
	if(msg!="null"){
		layer.msg(msg,{icon:2,time:2000})
	}
</script>
</html>